home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
utility
/
tsbat50.zip
/
EDIT.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-10-25
|
902b
|
39 lines
@echo off
echo
echo ┌─────────────────────────────────────────────┐
echo │ A truly trivial text file editor │
echo │ By Prof. Timo Salmi, ts@uwasa.fi, 25-Oct-92 │
echo └─────────────────────────────────────────────┘
echo.
rem Auxliliary files use drive R: (ramdisk)
if not exist r:\nul goto _noram
rem Instructions
if "%1"=="" goto _help
rem assure that the file initially exists
if exist %1 goto _doit
rem> %1
:_doit
echo Start writing, a row at the time.
echo End with ^Z + Enter, that is Ctrl-Z followed by pressing the Enter Key
copy con r:\tmp$$$ > nul
copy %1 + r:\tmp$$$ /b > nul
if exist r:\tmp$$$ del r:\tmp$$$
goto _out
:_noram
echo Drive R: not found
echo Either make in available or edit the batch
echo (I have R: as my ramdisk)
goto _out
:_help
echo Usage: EDIT [FileName]
echo Appends text at the end of the named file
echo.
:_out